package com.juku2024.juku.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.juku2024.juku.R
import com.juku2024.juku.db.entity.NoteExportEntity
import java.util.*
import kotlin.collections.ArrayList

class NoteExportAdapter(data: ArrayList<NoteExportEntity>): BaseQuickAdapter<NoteExportEntity, BaseViewHolder> (R.layout.item_note_export, data){

    override fun convert(holder: BaseViewHolder, item: NoteExportEntity) {
        holder.setText(R.id.tvTitle, item.title)
            .setText(R.id.tvDate, item.path?.replace("/storage/emulated/0", ""))
    }
}